package io.renren.modules.health.service;

import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.modules.health.dto.PostsDTO;
import io.renren.modules.health.entity.PostsEntity;

import java.util.List;
import java.util.Map;

/**
 * 帖子表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-05-09
 */
public interface PostsService extends CrudService<PostsEntity, PostsDTO> {

    PageData<PostsDTO> pagePosts(Map<String, Object> params);

    List<PostsDTO> listPosts(Map<String, Object> params);

    PostsDTO getPosts(Long id);
}